package com.poltman.dscentral.core.vm.menu;

import java.util.ArrayList;
import java.util.List;

/**
 * 
 * @author z.ciok@poltman.com
 * @version $Revision: 1646 $
 *
 */
public class MenuNode {
	List<MenuNode> children;
	String name;
	Boolean disabled = false;
	Object action;

	public MenuNode(String name, Boolean disabled, Object action) {
		this.name = name;
		this.disabled = disabled;
		children = new ArrayList<MenuNode>();
		this.action = action;
	}

	public void addChild(MenuNode node) {
		children.add(node);
	}
	public List<MenuNode> getChildren() {
		return children;
	}

	public Boolean getDisabled() {
		return disabled;
	}
	public void setDisabled(Boolean disabled) {
		this.disabled = disabled;
	}

	public String getName() {
		return name;
	}
	public Object getAction() {
		return action;
	}
}
